package itdep.domain.profile;


import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;

/**
 * @author $Author: ikhalopik $
 * @version $Revision: 52 $   $Date: 2010-07-06 10:22:21 +0000 (Tue, 06 Jul 2010) $
 */
public enum AddressType implements OrderedEnum, Translatable {
	UNKNOWN(0, "unknown"),
	RESIDENCE(1, "residence"),
	REGISTRATION(2, "registration"),
	BIRTH(3, "residence"),
	TEMP_REGISTRATION(4, "temp-registration");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "address-type";
	private int order;
	private String code;

	AddressType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}

}